package com.hashcoding.eyes.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * LoginInfo
 *
 * @author Maochuan
 * @date 2016-02-03
 */
public class LoginInfo {
    private String mUserID;
    private String mUserPassword;

    public LoginInfo(String userID, String userPassword) {
        this.mUserID = userID;
        this.mUserPassword = userPassword;
    }

    public boolean check(String userID, String userPassword) {
        return userID.equals(mUserID) && userPassword.equals(mUserPassword);
    }

    public String getUserID() { return mUserID; }

    public String getUserPassword() { return mUserPassword; }

    public void update(String userID, String userPassword) {
        this.mUserID = userID;
        this.mUserPassword = userPassword;
    }
}
